<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>

<div class="lefter">
	<div class="box">
		<h2>商品分类</h2>
		<dl>
			<c:forEach items="${pcList}" var="category">
				<dt>${category.name}</dt>
				<c:forEach items="${category.childList}" var="child">
				<dd>
					<a href="home?opr=product_list&categoryId=${child.id}">${child.name}</a>
				</dd>
				</c:forEach>
			</c:forEach>
		</dl>
	</div>
	<div class="spacer"></div>
	<div class="last-view">
		<h2>最近浏览</h2>
			<dl class="clearfix">
				<c:forEach items="${sessionScope.recentViewProducts}" var="product">
					<dt>
						<img style="width:30px;height:20px;"
							src="files/${product.fileName}" />
					</dt>
					<dd>
						<a href="Product?action=view&entityId=${product.id}">${product.name}</a>
					</dd>
				</c:forEach>
			</dl>
	</div>
</div>